﻿using JIG_SoftTemplate.ViewModels;
using Microsoft.Extensions.DependencyInjection;
using Wpf.Ui;

namespace JIG_SoftTemplate
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow
    {
        public MainWindow(MainWindowViewModel viewModel, Common.Services.NavigationService navigationService)
        {
            InitializeComponent();

            DataContext = viewModel;

            navigationService.SetMainFrame(rootFrame);

            App.Current.Services.GetRequiredService<ISnackbarService>().SetSnackbarPresenter(rootSnackbarPresenter);
            App.Current.Services.GetRequiredService<IContentDialogService>().SetDialogHost(rootContentDialog);


        }
    }
}